Skip to content

refactor(producer): extract HDR compositor from renderOrchestrator#1419

Closed
miguel-heygen wants to merge 1 commit into
refactor/delete-png-worker-poolfrom
refactor/extract-hdr-compositor
Closed

refactor(producer): extract HDR compositor from renderOrchestrator#1419
miguel-heygen wants to merge 1 commit into
refactor/delete-png-worker-poolfrom
refactor/extract-hdr-compositor

Conversation

@miguel-heygen

@miguel-heygen miguel-heygen commented Jun 13, 2026

Copy link
Copy Markdown
Collaborator

Extract ~700 LOC of HDR compositing types and functions from the 2,474-LOC renderOrchestrator.ts into a new hdrCompositor.ts module. Remove backward-compat re-exports from hdrPerf, captureCost, and shared. Rewire all 8 internal import sites.

This is a pure code move — no logic changes. Reviewer can verify by confirming the same code appears in the new file as was removed from the old one. renderOrchestrator.ts drops to 1,769 LOC.

1,473 LOC (723 insertions, 750 deletions — code move)

Stack: 3/5

Move ~700 LOC of HDR compositing primitives (countNonZeroAlpha,
countNonZeroRgb48, cropRgb48le, HdrVideoFrameSource,
closeHdrVideoFrameSource, blitHdrVideoLayer, HdrImageBuffer,
blitHdrImageLayer, CompositeTransfer, shouldUseLayeredComposite,
resolveCompositeTransfer, HdrCompositeContext, compositeHdrFrame,
HdrTransitionMeta, TransitionRange) into a dedicated
hdrCompositor.ts module.

Remove backward-compat re-exports from renderOrchestrator (hdrPerf,
captureCost, shared) and rewire all import sites to the
authoritative source modules.

miguel-heygen commented Jun 13, 2026

Copy link
Copy Markdown
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant